#coding=utf-8
from django.contrib import admin
from PublicTool.BaseAdmin import UserModelAdmin, SiteModelAdmin, SiteUserModelAdmin
import models


__author__ = 'czq'
class SiteSettingAdmin(SiteModelAdmin):
    pass
admin.site.register(models.SiteSetting,SiteSettingAdmin)

#网站信息
class SiteInfoAdmin(SiteModelAdmin):
    
    list_display = ('site','bbsName','isClose','putOnRecord',)

admin.site.register(models.SiteInfo,SiteInfoAdmin)

#站点优化
class SiteOptimizationAdmin(SiteModelAdmin):
    
    list_display = ('site','searchInterval','userOnlineInterval','notifySaveDay','indexChildClassNum',)
admin.site.register(models.SiteOptimization,SiteOptimizationAdmin)

#安全与防灌水
class SiteSafeAdmin(SiteModelAdmin):
    
    list_display = ('site','themeAddInterval','replyAddInterval','searchNumMax',)
admin.site.register(models.SiteSafe,SiteSafeAdmin)

#用户注册设置
class SiteRegisterAdmin(SiteModelAdmin):
    
    list_display = ('site','newUserRegister','newUserVerif',)
admin.site.register(models.SiteRegister,SiteRegisterAdmin)

#站点功能
class SiteFunctionAdmin(SiteModelAdmin):
    
    list_display = ('site','pageSize_Theme','pageSize_Reply',)
admin.site.register(models.SiteFunction,SiteFunctionAdmin)

#
class SiteExtcreditAdmin(SiteModelAdmin):
    
    list_display = ('site','name','number',)
admin.site.register(models.SiteExtcredit,SiteExtcreditAdmin)

class SiteIntegralAdmin(SiteModelAdmin):
    
    list_display = ('site','totalIntegral',)
admin.site.register(models.SiteIntegral,SiteIntegralAdmin)

class SiteFileTypeAdmin(SiteUserModelAdmin):
    list_display = ('site','extension','maxSize',)
    pass
admin.site.register(models.SiteFileType,SiteFileTypeAdmin)

class SiteFileClassAdmin(SiteUserModelAdmin):
    
    list_display = ('site','name',)
admin.site.register(models.SiteFileClass,SiteFileClassAdmin)



class SiteEmailAdmin(SiteModelAdmin):
    
    list_display = ('site','smtpServer',)
admin.site.register(models.SiteEmail,SiteEmailAdmin)